<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>

</head>
<body>
employee:<br>
firstPerson:<span id="first"></span><br>
secondPerson:<span id="second"></span><br>
thirdPerson:<span id="third"></span><br>
<script>
    var txt = '{ "employees" : ['+
            '{ "firstName":"John" , "lastName":"Doe" },'+
            '{ "firstName":"Anna" , "lastName":"Smith" },'+
            '{ "firstName":"Peter" , "lastName":"Jones" } ]}';
    var obj=eval("("+txt+")");
    alert(obj.employees[0].firstName+" " +obj.employees[0].lastName);
    document.getElementById("first").innerHTML=obj.name;
    document.getElementById("first").innerHTML=obj.employees[0].firstName+" " +obj.employees[0].lastName;
    document.getElementById("second").innerHTML=obj.employees[1].firstName+" "+obj.employees[1].lastName;
    document.getElementById("third").innerHTML=obj.employees[2].firstName+" "+obj.employees[2].lastName;
</script>
</body>
</html>